package com.anxinr.exception;

import com.anxinr.enums.ExceptionEnum;
import lombok.Getter;

/**
 * 逻辑异常
 *
 * @author anxinr
 */
@Getter
public class LogicException extends RuntimeException {
    private Integer code ;
    public LogicException(String message){
        super(message);
    }
    public LogicException(ExceptionEnum exceptionEnum){
        super(exceptionEnum.getMassage());
        this.code = exceptionEnum.getCode() ;
    }
}
